package cn.itscloudy.simpleorgintro

import cn.itscloudy.simpleorgintro.util.ApplicationUtil
import org.springframework.stereotype.Controller
import org.springframework.ui.Model
import org.springframework.web.bind.annotation.GetMapping

@Controller
class BaseController {
    @GetMapping("/")
    fun homePage(model: Model): String {
        model.addAttribute("companyName", "龙马")
        model.addAttribute("intro", ApplicationUtil.getResourceContent("/intro.txt"))
        return "index"
    }
}